package com.atguigu.gulimall.member.service;

import com.atguigu.common.vo.MemberVo;
import com.atguigu.gulimall.member.exception.PhoneExistException;
import com.atguigu.gulimall.member.exception.UsernameExistException;
import com.atguigu.gulimall.member.vo.LoginVo;
import com.atguigu.gulimall.member.vo.RegistVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author tr
 * @email tr@gmail.com
 * @date 2023-04-19 13:39:44
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(RegistVo registVo);
    void usernameExist(String username) throws UsernameExistException;
    void phoneExist(String phone) throws PhoneExistException;

    MemberVo login(LoginVo loginVo);
}

